from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template

from src.ca.views import *

urlpatterns = patterns('',
  (r'^about/$', direct_to_template, {'template': 'about.html'}),
  (r'^about/tos/$', direct_to_template, {'template': 'tos.html'}),
  (r'^cert/(?P<id>[0-9]*)/$',showCert ),
  (r'^cert/createSip/$',newSipCert),
  (r'^cert/createP2P/$',newP2PCert),
  (r'^cert/signP2P/$',signP2PCert),
# these URL are from RFC 4387
#  (r'^certificates/search.cgi?uri=(?P<lhs>[0-9A-Za-z]*)%40(?P<rhs>[0-9a-z.]*)$',findCert ),
)
